﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Authorization.Users;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Crowd
{
    /// <summary>
    /// 众筹项目
    /// </summary>
    public class CrowdFundings : FullAuditedEntity<long>
    {
        /// <summary>
        /// 众筹名称
        /// </summary>
        public string CrowdName { get; set; }
        /// <summary>
        /// 众筹项目类别ID
        /// </summary>
        public long CrowdCategoryId { get; set; }
        [ForeignKey("CrowdCategoryId")]
        public virtual CrowdCategory CrowdCategory { get; set; }
        /// <summary>
        /// 众筹封面图片
        /// </summary>
        public string LogoImg { get; set; }
        /// <summary>
        /// 众筹轮播
        /// </summary>
        public string CrowdBanner { get; set; }
        /// <summary>
        /// 介绍信息
        /// </summary>
        public string CrowdIntroduce { get; set; }
        /// <summary>
        /// 众筹发起人
        /// </summary>
        public long UserId { get; set; }
        //[ForeignKey("UserId")]
        //public virtual User User { get; set; }
        /// <summary>
        /// 众筹总数(总金额)
        /// </summary>
        public decimal CrowdFundingSum { get; set; }
        /// <summary>
        /// 已经众筹总数(总金额)
        /// </summary>
        public decimal SumMoney { get; set; }
        /// <summary>
        /// 项目众筹状态(1：未开始；2：进行中；3：已结束)
        /// </summary>
        public int CrowdState { get; set; }
        /// <summary>
        /// 参与人总数
        /// </summary>
        public int AllCountPeople { get; set; }
        /// <summary>
        /// 众筹发起人电话
        /// </summary>
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 众筹发起人姓名
        /// </summary>
        public string UserName { get; set; }
    }
}
